package com.clk.services;

import com.clk.pojo.Admin;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 业务逻辑处理层
 */
public interface AdminServices {
    /**
     * 修改登陆次数
     * 登录
     *
     * @return
     */
    Admin login(@Param("userName") String userName, @Param("password") String password);
    Integer updateLoginTimes(Integer id);
    List<Admin> getAdminAll();
    Admin getAdminByName(String userName);
    //修改
    Boolean updateAdmin(Admin admin);
    //新增
    Boolean saveAdmin(Admin admin);

    Boolean delAdmin(Integer id);
}
